package com.drojian.thread.waitandnotify2;

import org.junit.Test;

import java.util.concurrent.ArrayBlockingQueue;


public class ThreadTest {

    @Test
    public void test1() {
        ArrayBlockingQueue<String> queue = new ArrayBlockingQueue(1);
        Cookie cookie = new Cookie(queue);
        Food food = new Food(queue);
        cookie.start();
        food.start();
    }
}
